import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./plugins/ant-design-vue.js";
import instance from "@/axios/index";
import { AxiosInstanceExpand } from "@/types/axios.d.ts";

//axios拓展
declare module "vue/types/vue" {
  interface Vue {
    $axios: AxiosInstanceExpand,
    axios: AxiosInstanceExpand
  }
}

/**
 * 引入公共css
 */
import "@/assets/css/normalize.css";
import "@/assets/css/common.css";

import "@/themes/variables.less";

Vue.config.productionTip = false;
Vue.prototype.axios = instance;
Vue.prototype.$axios = instance;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
